<template>
  <div class="pagetool">
    <div class="left">
      <slot name="left">
        <i class="el-icon-delete" v-if="showLeft"></i>
      </slot>
    </div>
    <div class="right">
      <slot name="right">
        <h5>这里是右边</h5>
      </slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'pagetool',
  props: {
    showLeft: {
      type: Boolean,
      default: true
    }
  }
}
</script>

<style lang="scss" scoped>
.pagetool {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>
